<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE>
<html>
<head>
<jsp:include page="../header.jsp">
	<jsp:param value="就业跟进" name="title" />
</jsp:include>
<link href="static/css/job_follow.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="static/js/job.js"></script>
<script type="text/javascript"
	src="${basePath }My97DatePicker/WdatePicker.js"></script>
</head>
<body>
	<jsp:include page="../menu/menue.jsp"></jsp:include>
	<div class="interview record">
		<form class="ui form" method="post">
			<h4 class="ui dividing header">面试信息</h4>
			<input type="hidden" name=id value="${student.id}"> <input
				type="hidden" name=recordId value="${jobPo.recordId}">
			<div class="two fields">
				<div class="field">
					<label>公司*</label>
					<c:choose>
						<c:when test="${empty jobPo }">
							<input type="text" name="company" value="${param.company }">
						</c:when>
						<c:otherwise>
							<input type="text" name="company" value="${jobPo.company }">
						</c:otherwise>
					</c:choose>

				</div>
				<div class="field">
					<label>面试时间*</label>
					<c:choose>
						<c:when test="${empty jobPo }">
							<input type="text" value="${param.interDate }" name="interDate"
								id="d241" onfocus="WdatePicker()">
						</c:when>
						<c:otherwise>
							<input type="text" name="interDate" id="d241"
								onfocus="WdatePicker()" placeholder="Interview Date"
								value="<fmt:formatDate value="${jobPo.interDate }" type="date"/>">
						</c:otherwise>
					</c:choose>
				</div>
			</div>
			<div class=" field">
				<div class="fields">
					<div class="twelve wide field" style="margin-right: 0px !important">
						<label>公司地址</label>
						<c:choose>
							<c:when test="${empty jobPo }">
								<input type="text" value="${param.address }" name="address">
							</c:when>
							<c:otherwise>
								<input type="text" value="${jobPo.comAddress }" name="address">
							</c:otherwise>
						</c:choose>
					</div>

					<div class="four wide field">
						<label>实习期</label>
						<c:choose>
							<c:when test="${empty jobPo }">
								<input type="text" value="${param.residency }" name="residency">
							</c:when>
							<c:otherwise>
								<input type="text" value="${jobPo.resDuration }"
									name="residency">
							</c:otherwise>
						</c:choose>
					</div>
				</div>
			</div>
			<div class="two fields">
				<div class="field">
					<label>公司类型*</label>
					<c:choose>
						<c:when test="${empty jobPo }">
							<input type="text" name="companyType"
								value="${param.companyType }">
						</c:when>
						<c:otherwise>
							<input type="text" name="companyType"
								value="${jobPo.companyType }">
						</c:otherwise>
					</c:choose>
				</div>
				<div class="field">
					<label>所属职位*</label>
					<c:choose>
						<c:when test="${empty jobPo }">
							<input type="text" name="professional"
								value="${param.professional }">
						</c:when>
						<c:otherwise>
							<input type="text" name="professional"
								value="${jobPo.professional }">
						</c:otherwise>
					</c:choose>
				</div>
			</div>
			<div class="two fields">
				<div class="field">
					<label>实习薪水</label>
					<c:choose>
						<c:when test="${empty jobPo }">
							<input type="text" name="resSalary" value="${param.resSalary }">
						</c:when>
						<c:otherwise>
							<input type="text" name="resSalary" value="${jobPo.resSalary }">
						</c:otherwise>
					</c:choose>
				</div>
				<div class="field">
					<label>转正薪水*</label>
					<c:choose>
						<c:when test="${empty jobPo }">
							<input type="text" name="salary" value="${param.salary }">
						</c:when>
						<c:otherwise>
							<input type="text" name="salary" value="${jobPo.salary }">
						</c:otherwise>
					</c:choose>
				</div>
			</div>
			<c:if test="${empty jobPo}">
				<div class="files"></div>
				<span class="btn btn-success fileinput-button"
					style="margin-right: 20px;"> <span class="fileinput-text">选择文件</span>
					<input id="fileupload" type="file" name="files[]">
				</span>
			</c:if>

			<button class="ui button" tabindex="0" type="submit"
				style="text_align: center;">${empty jobPo? '创建':'保存' }</button>
			<a class="ui button" tabindex="0" id="cancel"
				href="${empty jobPo? 'job/follow':'job/employed'}">取消</a> <span
				class="erro">${erro}</span>

		</form>
	</div>
</body>
</html>